package com.tcs.test.designmodel.adapter;

/**
 * @ClassName : DogAdapter
 * @Author : 神经刀
 * @Date : 2019/5/29 : 10:23
 * @Version : 1.0
 */
public class DogAdapter implements Dog {

    private Bird bird;

    public DogAdapter(){};

    public DogAdapter(Bird bird) {
        this.bird = bird;
    }

    @Override
    public void cry() {
        bird.cry();
    }

    @Override
    public void run() {
        bird.fly();
    }
}
